package com.belizer.demo.thread;

import java.util.concurrent.CountDownLatch;

public class Task {
    private CountDownLatch countDownLatch = null;

    //必须先调用
    public void setCountDownLatch(int i){
        this.countDownLatch= new CountDownLatch(i);
    }

    public CountDownLatch getCountDownLatch(){
        return  this.countDownLatch;
    }

}
